import React, { useContext } from 'react';
import cs from 'classnames';
import styles from './style/index.module.less';
import { GlobalContext } from '@/context';
function ModalTitle({ title }: { title: string }) {
  const { rtl } = useContext(GlobalContext);
  return (
    <div
      className={cs(
        styles['history-title'],
        rtl ? styles['history-title-rtl'] : ''
      )}
    >
      {title}
    </div>
  );
}
export default ModalTitle;
